<UserControl x:Class="OutSync.UserControls.ContactsListBoxUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:uc="clr-namespace:OutSync.UserControls">

  <UserControl.Resources>
    <Style x:Key="contactsListBox" TargetType="{x:Type ListBox}">
      <Style.Resources>        
        <LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" StartPoint="0,0" EndPoint="0,1">          
          <GradientStop Color="#F0F9FE" Offset="0" />
          <GradientStop Color="#D8F0FD" Offset="1" />
        </LinearGradientBrush>
      </Style.Resources>
    </Style>
  </UserControl.Resources>

  <ListBox x:Name="listBox1" Style="{StaticResource contactsListBox}" MinWidth="250" SelectionMode="Single" MouseDoubleClick="listbox_MouseDoubleClick" >
    <ListBox.ItemTemplate>
      <DataTemplate>
        <uc:ContactHeaderUserControl />
      </DataTemplate>
    </ListBox.ItemTemplate>
  </ListBox>   
</UserControl>